extends "../haitian-1/haitian-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("每{cd}秒赋予[最靠前]的5名友军1层<圣盾>", "维持战线", "haitian2", 10)


func _castCdSkill(id):
	._castCdSkill(id)
	if id == "haitian2":
		haitian2()

func haitian2():
	var chas = getAllChas(5)
	chas.sort_custom(self, "sortByFront")
	for i in range(4):
		if i >= chas.size():break
		buff.addShengDun(chas[i], 1)
	
	